/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
    padding: 15px 0;
    border-bottom: 2px solid #3498db;
}

/* 主要内容区域 */
.recognition-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

/* 结果区域标题 */
.result-section {
    margin-bottom: 20px;
}

.result-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

/* 结果显示区域 */
.result-container {
    min-height: 100px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    overflow-y: auto;
}

#translation-container {
    background-color: #f0f8ff; /* 翻译结果区域使用稍微不同的背景色 */
}

.result-text {
    margin-bottom: 10px;
    word-wrap: break-word;
}

.temp {
    color: #7f8c8d;
    font-style: italic;
}

/* 控制按钮区域 */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mic-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mic-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.mic-button:active {
    transform: scale(0.98);
}

.mic-button.recording {
    background-color: #e74c3c;
    animation: pulse 1.5s infinite;
}

.mic-icon {
    font-size: 20px;
}

/* 电脑音频按钮样式 */
.system-audio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #9b59b6;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.system-audio-button:hover {
    background-color: #8e44ad;
    transform: scale(1.05);
}

.system-audio-button:active {
    transform: scale(0.98);
}

.system-audio-button.recording {
    background-color: #e74c3c;
    animation: pulse 1.5s infinite;
}

.system-audio-icon {
    font-size: 20px;
}

/* 语言切换按钮样式 */
.switch-lang-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-lang-button:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

.switch-lang-button:active {
    transform: scale(0.98);
}

.switch-lang-icon {
    font-size: 20px;
}

/* 状态指示器 */
.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #95a5a6;
}

.status-indicator.active {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.status-indicator.error {
    background-color: #e74c3c;
    box-shadow: 0 0 10px #e74c3c;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* 调试信息区域 */
.debug-info {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f8ff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.debug-info h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

#debug-container {
    font-family: monospace;
    font-size: 14px;
    color: #555;
}

#debug-container p {
    margin: 5px 0;
}

/* 页脚样式 */
footer {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    padding: 15px 0;
} 